home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Delphi Informant Complete 1995 - 2000
/
Delphi Informant Complete 1995 to 2000.iso
/
Delphi Informant Magazine Complete Works SOURCE CODE 1995.rar
/
1995
/
JUN
/
PTRPDEMO
/
HACT.HLP
/
hact.p4w
next >
Wrap
Text File
|
1995-04-05
|
33KB
|
983 lines
{ this is the global variables section, we have here the # of ordered items }
var
{ logo : string = 'fly16b.bmp';}
logo : string = '3dlogo2.bmp';
oHlpdkPa : integer = 0;
cHLPDKPA : integer;
pHLPDKPA : integer = 299; { $299 for a while }
tpHLPDKPA : integer;
oHLPDK : integer = 0;
cHLPDK : integer;
pHLPDK : integer = 50; { $50 for a while }
tpHLPDK : integer;
oPasterp : integer = 0;
cPasterp : integer;
pPasterp : integer = 200; { $ 200 for a while }
tpPASTERP : integer;
oInteractive : integer = 0;
cInteractive : integer;
pInteractive : integer = 149; { $ 149 for a while }
tpInteractive : integer;
oParserTP : integer = 0;
cParserTP : integer;
pParserTP : integer = 40; { $40 for a while }
tpParserTP : integer;
oXspawn : integer = 0;
cXspawn : integer;
pXspawn : integer = 99; { $99 for xspawn }
tpXSpawn : integer;
ordered : integer;
orderPrice : integer;
itemName : integer; { static control handle }
unitPrice : integer; { static control handle }
totalPrice : integer; { static control handle }
itemNum : integer; { edit control handle }
ordS : string;
item : string;
ordHLPDKPA : integer; { order screen }
ordHLPDK : integer;
ordPASTERP : integer;
ordIH : integer;
ordXSpawn : integer;
ordParserTP : integer;
prcHLPDKPA : integer; { order screen }
prcHLPDK : integer;
prcPASTERP : integer;
prcIH : integer;
prcXSpawn : integer;
prcParserTP : integer;
total : integer;
totalOrd : longint;
dtlTot : integer; { details form }
dtlName : integer;
name : string = "";
bName : string = ''; { billing name }
dtlTitle : integer;
title : string = '';
bTitle : string = ''; { billing title }
dtlCompany : integer;
company : string = '';
bCompany : string = '';
address1 : string = '';
bAddress1 : string = '';
address2 : string = '';
bAddress2 : string = '';
city : string = '';
bcity : string = '';
state : string = '';
bState : string = '';
zip : string = '';
bZip : string = '';
phone : string = '';
fax : string = '';
email1 : string = '';
email2 : string = '';
mailOption : string = "USA, First Class";
mailNum : integer;
payment : string = "US $ Check";
paymentNum : integer;
cardName : integer; { handle to static }
cardStr : string;
CardNum : string = '';
overNight : boolean = false;
exprDate : string = '';
cardHolder : string = '';
comment : string = '';
shipping : longint = 0;
tax : real = 0.0;
taxStr : string = '0.0';
totalToPay : real = 0;
totalPayStr : string = '0.0';
paymentDetails1 : string = '';
paymentDetails2 : string = '';
paymentDetails3 : string = '';
endVar
procedure autoStart
macCreateButton('mark', '&Mark', "executeProc(`MarkPressed', qError)");
macCreateButton('order', '&Order', "executeProc(`orderProc', qError)");
createForm("ItemOrder", "Order Item", 100, 100, 200, 150, "SetItem");
itemName := addStatic("ItemOrder", "", 10, 10, 170, 14);
addStatic("ItemOrder", "Copies To Order : ", 10, 50, 80, 14);
itemNum := addEditBox("ItemOrder", "ordS", "ordS", 100, 50, 80, 14, "updateTotal")
addStatic("ItemOrder", "Unit Price : ", 10, 70, 80, 14);
unitPrice := addStatic("ItemOrder", "", 100, 70, 80, 14);
addStatic("ItemOrder", "Total Price", 10, 90, 80, 14);
totalPrice := addStatic("ItemOrder", "", 100, 90, 80, 14);
createForm("Order", "Order Products", 100, 100, 230, 210, "StartOrder");
addStatic("Order", "Order HyperAct Products", 10, 10, 170, 14);
addStatic("Order", "&HLPDK/PA", 10, 60, 70, 14);
ordHLPDKPA := addEditBox("Order", "", "cHLPDKPA", 90, 60, 30, 14, "afterHLPDKPA");
addStatic("Order", "x $299", 130, 60, 50, 14);
prcHLPDKPA := addStatic("Order", "", 190, 60, 50, 14);
addStatic("Order", "HLPDK", 10, 80, 70, 14);
ordHLPDK := addEditBox("Order", "", "cHLPDK", 90, 80, 30, 14, 'afterHLPDK');
addStatic("Order", "x $50", 130, 80, 50, 14);
prcHLPDK := addStatic("Order", "", 190, 80, 50, 14);
addStatic("Order", "&PASTERP", 10, 100, 70, 14);
ordPASTERP := addEditBox("Order", "", "cPasterp", 90, 100, 30, 14, 'afterPASTERP');
addStatic("Order", "x $200", 130, 100, 50, 14);
prcPASTERP := addStatic("Order", "", 190, 100, 50, 14);
addStatic("Order", "&Interactive Help", 10, 120, 70, 14);
ordIH := addEditBox("Order", "", "cInteractive", 90, 120, 30, 14, 'afterIH');
addStatic("Order", "x $149", 130, 120, 50, 14);
prcIH := addStatic("Order", "", 190, 120, 50, 14);
addStatic("Order", "Parser/TP", 10, 140, 70, 14);
ordParserTP := addEditBox("Order", "", "cParserTP", 90, 140, 30, 14, 'afterParserTP');
addStatic("Order", "x $40", 130, 140, 50, 14);
prcParserTP := addStatic("Order", "", 190, 140, 50, 14);
addStatic("Order", "&XSpawn", 10, 160, 70, 14);
ordXspawn := addEditBox("Order", "", "cXspawn", 90, 160, 30, 14, 'afterXSpawn');
addStatic("Order", "x $99", 130, 160, 50, 14);
prcXSpawn := addStatic("Order", "", 190, 160, 50, 14);
addStatic("Order", "Total", 130, 180, 50, 14);
total := addStatic("Order", "", 190, 180, 50, 14);
createForm("Details", "Shipping information", 100, 100, 230, 210, "StartDetails");
addStatic("Details", "Ship products to :", 10, 10, 170, 14);
dtlTot := addStatic("Details", "", 10, 30, 170, 14);
addStatic("Details", "&Name", 10, 60, 70, 14);
dtlName := addEditBox("Details", "name", "name", 80, 60, 120, 14);
addStatic("Details", "&Title", 10, 80, 70, 14);
dtlTitle := addEditBox("Details", "title", "title", 80, 80, 120, 14);
addStatic("Details", "&Company", 10, 100, 70, 14);
dtlCompany := addEditBox("Details", "company", "company", 80, 100, 120, 14);
addStatic("Details", "Address &1", 10, 120, 70, 14);
addEditBox("Details", "address1", "address1", 80, 120, 120, 14);
addStatic("Details", "Address &2", 10, 140, 70, 14);
addEditBox("Details", "address2", "address2", 80, 140, 120, 14);
addStatic("Details", "Ci&ty", 10, 160, 70, 14);
addEditBox("Details", "city", "city", 80, 160, 120, 14);
addStatic("Details", "&State", 10, 180, 70, 14);
addEditBox("Details", "state", "state", 80, 180, 20, 14);
addStatic("Details", "&Zip", 110, 180, 30, 14);
addEditBox("Details", "zip", "zip", 150, 180, 50, 14);
createForm("Billing", "Billing information", 100, 100, 230, 210, "StartDetails");
addStatic("Billing", "Press OK if same as shipping", 10, 10, 230, 14);
dtlTot := addStatic("Billing", "", 10, 30, 170, 14);
addStatic("Billing", "&Name", 10, 60, 70, 14);
dtlName := addEditBox("Billing", "bname", "bname", 80, 60, 120, 14);
addStatic("Billing", "&Title", 10, 80, 70, 14);
dtlTitle := addEditBox("Billing", "btitle", "btitle", 80, 80, 120, 14);
addStatic("Billing", "&Company", 10, 100, 70, 14);
dtlCompany := addEditBox("Billing", "bcompany", "bcompany", 80, 100, 120, 14);
addStatic("Billing", "Address &1", 10, 120, 70, 14);
addEditBox("Billing", "baddress1", "baddress1", 80, 120, 120, 14);
addStatic("Billing", "Address &2", 10, 140, 70, 14);
addEditBox("Billing", "baddress2", "b